package cn.lwj.common;


import org.apache.ibatis.javassist.compiler.ast.Variable;

import java.security.AlgorithmConstraints;


//用于存储和互殴去一个线程中可能用到的数据
public class BaseContext {


    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setCurrentId(long id){
        threadLocal.set(id);
    }
    public static long getCurrentId(){
        return threadLocal.get();
    }

}
